package com.ruoyi.exam.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;


/**
 * 用户刷题记录对象 exam_user_practice_record
 *
 * @author Tellsea
 * @date 2025-06-23
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("exam_user_practice_record")
public class ExamUserPracticeRecord extends BaseEntity {

    /**
     * 刷题记录ID
     */
    @TableId
    private Long recordId;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 题库ID
     */
    @Excel(name = "题库ID")
    private Long bankId;

    /**
     * 题目ID
     */
    @Excel(name = "题目ID")
    private Long questionId;

    /**
     * 用户答案内容
     */
    @Excel(name = "用户答案内容")
    private String answerContent;

    /**
     * 选择的选项(A,B,C,D)
     */
    @Excel(name = "选择的选项(A,B,C,D)")
    private String selectedOptions;

    /**
     * 是否答对(0错误 1正确)
     */
    @Excel(name = "是否答对(0错误 1正确)")
    private String isCorrect;

    /**
     * 得分
     */
    @Excel(name = "得分")
    private BigDecimal score;

    /**
     * 答题用时(秒)
     */
    @Excel(name = "答题用时(秒)")
    private Long answerTime;

    /**
     * 练习模式(1顺序刷题 2随机刷题 3错题重练)
     */
    @Excel(name = "练习模式(1顺序刷题 2随机刷题 3错题重练)")
    private String practiceMode;

    /**
     * 记录状态(1正常 0删除)
     */
    @Excel(name = "记录状态(1正常 0删除)")
    private String status;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

}
